package com.maze.activity.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.maze.common.annotation.Excel;
import com.maze.common.core.domain.BaseEntity;

/**
 * 活动发布对象 activities
 *
 * @author xixi.wang
 * @date 2025-03-30
 */
public class Activities extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动唯一标识 */
    private Long actId;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 活动内容描述 */
    @Excel(name = "活动内容描述")
    private String description;

    /** 宣传画报URL */
    @Excel(name = "宣传画报URL")
    private String bannerUrl;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startAt;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endAt;

    /** 活动地点 */
    @Excel(name = "活动地点")
    private String location;

    /** 预计参与人数 */
    @Excel(name = "预计参与人数")
    private Long capacity;

    /** 活动状态：草稿 draft、待审核 pending、已通过 approved、进行中ongoing、已完成 completed */
    @Excel(name = "活动状态：草稿 draft、待审核 pending、已通过 approved、进行中ongoing、已完成 completed")
    private String status;

    /** 报名记录信息 */
    private List<Registrations> registrationsList;

    public void setActId(Long actId)
    {
        this.actId = actId;
    }

    public Long getActId()
    {
        return actId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setBannerUrl(String bannerUrl)
    {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl()
    {
        return bannerUrl;
    }
    public void setStartAt(Date startAt)
    {
        this.startAt = startAt;
    }

    public Date getStartAt()
    {
        return startAt;
    }
    public void setEndAt(Date endAt)
    {
        this.endAt = endAt;
    }

    public Date getEndAt()
    {
        return endAt;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setCapacity(Long capacity)
    {
        this.capacity = capacity;
    }

    public Long getCapacity()
    {
        return capacity;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public List<Registrations> getRegistrationsList()
    {
        return registrationsList;
    }

    public void setRegistrationsList(List<Registrations> registrationsList)
    {
        this.registrationsList = registrationsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("actId", getActId())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("bannerUrl", getBannerUrl())
                .append("startAt", getStartAt())
                .append("endAt", getEndAt())
                .append("location", getLocation())
                .append("capacity", getCapacity())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("registrationsList", getRegistrationsList())
                .toString();
    }
}
